﻿namespace WPForms.Phone.DataAccess
{
    using System;
    using System.Data.Linq;
    using System.Net;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Documents;
    using System.Windows.Ink;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Animation;
    using System.Windows.Shapes;
    using WPForms.Phone.DataAccess;

    /// <summary>
    /// Data context for the WPForms framework
    /// </summary>
    [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1401:FieldsMustBePrivate", Justification = "Used by EF.")]
    public class WPFormsDataContext : DataContext
    {
        /// <summary>
        /// The Form table.
        /// </summary>
        public Table<Form> Forms;

        /// <summary>
        /// The FieldValues table.
        /// </summary>
        public Table<FieldValue> FieldValues;

        /// <summary>
        /// The Attachments table
        /// </summary>
        public Table<Attachment> Attachments;

        /// <summary>
        /// Initializes a new instance of the <see cref="WPFormsDataContext" /> class.
        /// </summary>
        /// <param name="connectionString">The connection string.</param>
        public WPFormsDataContext(string connectionString)
            : base(connectionString)
        {
        }
    }
}
